package com.cqu.hhx.driver.entity;

import java.sql.Timestamp;

/**
 * @author DJ
 * @create 2020-05-23 18:17
 */
public class Customer {
    //顾客Id
    private Long customerId;
    //账户
    private String account;
    //密码
    private String passWord;
    //姓名
    private String customerName;
    //年龄
    private Integer age;
    //身份证
    private String idCard;
    //电话号
    private String phone;
    //已完成订单数
    private Integer finishedOrders;
    //注册时间
    private Timestamp createTime;
    //账户余额
    private Float money;

    public Customer() {
    }

    public Customer(Long customerId, String account, String passWord,
                    String customerName, Integer age, String idCard, String phone,
                    Integer finishedOrders, Timestamp createTime, Float money) {
        this.customerId = customerId;
        this.account = account;
        this.passWord = passWord;
        this.customerName = customerName;
        this.age = age;
        this.idCard = idCard;
        this.phone = phone;
        this.finishedOrders = finishedOrders;
        this.createTime = createTime;
        this.money = money;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getFinishedOrders() {
        return finishedOrders;
    }

    public void setFinishedOrders(Integer finishedOrders) {
        this.finishedOrders = finishedOrders;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "customerId=" + customerId +
                ", account='" + account + '\'' +
                ", passWord='" + passWord + '\'' +
                ", customerName='" + customerName + '\'' +
                ", age=" + age +
                ", idCard='" + idCard + '\'' +
                ", phone='" + phone + '\'' +
                ", finishedOrders=" + finishedOrders +
                ", createTime=" + createTime +
                ", money=" + money +
                '}';
    }
}
